<template>
  <div class="work-calendar">
    <h3>工作日历</h3>
    <div class="yearmonth">
      <el-select v-model="value" placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item"
          :label="item"
          :value="item"
        />

      </el-select>
      <el-select v-model="value" placeholder="请选择">
        <el-option
          v-for="item in option"
          :key="item"
          :label="item"
          :value="item"
        />
      </el-select>
    </div>
    <el-calendar v-model="nowData" class="calendar" />

  </div>
</template>

<script>
export default {
  data() {
    return {
      nowData: new Date(),
      options: ['2019', '2020', '2021'],
      option: ['1', '2', '3'],
      num: 1
    }
  },
  beforeCreate() {
    setTimeout(() => {
      console.log('==', this.num)
    }, 0)
  }
}
</script>

<style lang="scss" scoped>
.work-calendar{
  h3{
    font-size: 24px;
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
  }
  ::v-deep .calendar{
   .el-calendar__header{
      display: none;
      }
      .el-calendar-table__row{
        td{
          border: none;

          .el-calendar-day{
            display: flex;
            align-items: center;
             justify-content: center;
          }
        }
      }

  }
}
</style>
